package com.pms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.EmployeeDepartmentMapper;
import com.pms.dao.InfoEmployeeMapper;
import com.pms.pojo.EmployeeDept;
import com.pms.pojo.InfoEmployee;
import com.pms.pojo.PageVo;



@Service
public class EmployeeDepartmentServiceImpl implements EmployeeDepartmentService {
    
	@Autowired
	private EmployeeDepartmentMapper  employeeDepartment;
	@Autowired
	private InfoEmployeeMapper  infoEmployee;
	
	
	@Override
	public List<EmployeeDept> findDepartmentAll() {
		List<EmployeeDept> DepartmentList = employeeDepartment.findDepartmentAll();
		return DepartmentList;
		
	}


	@Override
	public List<InfoEmployee> findEmployeeAll(PageVo vo) {
		List<InfoEmployee> employeeList = infoEmployee.findEmployeeAll(vo);
		return employeeList;
	}


	@Override
	public int findEmployeeCount() {
		
		int employeeCount = infoEmployee.findEmployeeCount();
		
		return employeeCount;
	}


	@Override
	public List<InfoEmployee> findEmployeeSelect(PageVo vo) {
		List<InfoEmployee> employeeSelectList = infoEmployee.findEmployeeSelect(vo);
		return employeeSelectList;
	}


	@Override
	public int findEmployeeSelectCount(PageVo vo) {
		int findEmployeeSelectCount = infoEmployee.findEmployeeSelectCount(vo);
		return findEmployeeSelectCount;
	}

}
